package com.lychee.moli.service.serviceimpl;

import com.lychee.moli.dao.IStoreDao;
import com.lychee.moli.entity.StoreEntity;
import com.lychee.moli.service.IStoreService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Lychee on 2018/4/12 10:05.
 * <p>
 * Author:Hejingzhou
 * <p>
 * Email:tcowork@163.com
 */
@Service
public class StoreImpl implements IStoreService {

    @Resource
    private IStoreDao storeDao;

    public int createStore(StoreEntity storeEntity) {
        return storeDao.createStore(storeEntity);
    }

    public int saveStoreImage(String storeId, String imagePath) {
        return storeDao.saveCover(storeId, imagePath);
    }

    public StoreEntity queryStoreDetail(String storeID) {
        return storeDao.queryStoreDetail(storeID);
    }
}
